<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateSeckillTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('seckill', function (Blueprint $table) {
            $table->bigIncrements('id');
            $table->string('lw_name')->comment('商品名称');
            $table->string('lw_pic')->comment('商品图片');
            $table->string('lw_price')->comment('商品价格');
            $table->string('lw_stock')->comment('商品库存');
            $table->time('lw_time_begin')->comment('商品开始秒杀时间');
            $table->time('lw_time_over')->comment('商品结束秒杀时间');
            $table->timestamps();
            $table->softDeletes();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('seckill');
    }
}
